<?php
/**
 * Created by PhpStorm.
 * User: xiaofeng
 * motto: 现在的努力是为了小时候吹过的牛逼！
 * Date: 2020/9/17
 * Time: 23:34
 */
namespace app\common\model\mysql;
use think\Model;

class SpecsValue extends Model {
    protected $autoWriteTimestamp = true;
    public function getNormalBySpecsId($specsId, $field="*"){
        $where = [
            "specs_id"=>$specsId,
            "status"=>config("status.mysql.table_normal")
        ];
        $res = $this->where($where)
            ->field($field)
            ->select();
        return $res;
    }
}
